shortcuts: Don't include gtk.h
authorBenjamin Otte <otte@redhat.com>
Thu, 8 Feb 2018 05:15:10 +0000 (06:15 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 8 Feb 2018 05:16:01 +0000 (06:16 +0100)
Clean up all shortcuts includes to only include the necessary files
while we're at it.

gtk/gtksearchbar.c
gtk/gtksearchbar.h
gtk/gtkshortcutsgroup.c
gtk/gtkshortcutsgroup.h
gtk/gtkshortcutssection.h
gtk/gtkshortcutsshortcut.c
gtk/gtkshortcutsshortcut.h
gtk/gtkshortcutsshortcutprivate.h
gtk/gtkshortcutswindow.c
gtk/gtkshortcutswindow.h

index ef1b982b71d72c94f714efda020abf37b6c0ac34..690caca8f0fd334231c3d6d4ccf8b068586fe0b5 100644 (file)
 
 #include "config.h"
 
-#include "gtkentry.h"
-#include "gtkbox.h"
-#include "gtkcenterbox.h"
+#include "gtksearchbar.h"
+
 #include "gtkbutton.h"
+#include "gtkcenterbox.h"
 #include "gtkentryprivate.h"
 #include "gtkintl.h"
 #include "gtkprivate.h"
-#include "gtksearchbar.h"
+#include "gtkrevealer.h"
 #include "gtksearchentryprivate.h"
 #include "gtksnapshot.h"
 
index 68f8542d05583eda7ec91a74609e7dce79372d41..5f94b371553f2cabe4cbbdee9a0f395b293bf74d 100644 (file)
@@ -32,7 +32,8 @@
 #error "Only <gtk/gtk.h> can be included directly."
 #endif
 
-#include <gtk/gtkrevealer.h>
+#include <gtk/gtkbin.h>
+#include <gtk/gtkentry.h>
 
 G_BEGIN_DECLS
 
index 8e376656376db02d495e5bb66c27434ffc1ff8bf..60fa41048f25569934f331e0a23cfdb8254de5c7 100644 (file)
 
 #include "gtkshortcutsgroup.h"
 
-#include "gtkshortcutsshortcut.h"
+#include "gtkbox.h"
+#include "gtkintl.h"
 #include "gtklabel.h"
 #include "gtkorientable.h"
-#include "gtksizegroup.h"
 #include "gtkprivate.h"
-#include "gtkintl.h"
+#include "gtkshortcutsshortcut.h"
+#include "gtksizegroup.h"
 
 /**
  * SECTION:gtkshortcutsgroup
index 88048e8a9117bed4853b3d77b07b2ecbd206a72d..492b9ffc782461fac731f3cf9d9bdb25ef7e0af4 100644 (file)
 #ifndef __GTK_SHORTCUTS_GROUP_H__
 #define __GTK_SHORTCUTS_GROUP_H__
 
-#include <gtk/gtkbox.h>
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gdk/gdk.h>
 
 G_BEGIN_DECLS
 
index 8b7c3bb3945b039d14133ec26517e34560547228..420a0de6f3306a0079d4246aec3582ad64fc91f1 100644 (file)
 #ifndef __GTK_SHORTCUTS_SECTION_H__
 #define __GTK_SHORTCUTS_SECTION_H__
 
-#include <gtk/gtkbox.h>
-#include <gtk/gtkshortcutsgroup.h>
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gdk/gdk.h>
 
 G_BEGIN_DECLS
 
index 81db30163ffdf94208bec9a5d7fcb83666a5d8d3..4a11d296ef83f34a8b8c2f6590082ef7fcd9a3aa 100644 (file)
 
 #include "gtkshortcutsshortcutprivate.h"
 
+#include "gtkimage.h"
+#include "gtkintl.h"
+#include "gtklabel.h"
+#include "gtkprivate.h"
 #include "gtkshortcutlabel.h"
 #include "gtkshortcutswindowprivate.h"
-#include "gtkprivate.h"
-#include "gtkintl.h"
+#include "gtksizegroup.h"
+#include "gtktypebuiltins.h"
 
 /**
  * SECTION:gtkshortcutsshortcut
index b8eeeca2c93f9a969aaf49c1556b29263f0a4157..dd9e7aaf375dd02fa241992b184550c08e9c0dc3 100644 (file)
 #ifndef GTK_SHORTCUTS_SHORTCUT_H
 #define GTK_SHORTCUTS_SHORTCUT_H
 
-#include <gtk/gtk.h>
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gdk/gdk.h>
 
 G_BEGIN_DECLS
 
index 55961001736e3514a38e0101da3b26a65afdf67f..a20706aa6fb7aa275775daf23b99167d59335d2f 100644 (file)
@@ -27,6 +27,8 @@
 
 #include "gtkshortcutsshortcut.h"
 
+#include "gtkwindow.h"
+
 G_BEGIN_DECLS
 
 void gtk_shortcuts_shortcut_update_accel (GtkShortcutsShortcut *self,
index 6499c041b9ded0b2245bd6dfcee4d765f16e2e35..a1735128636eb837ea9237baec9e7b546219c86f 100644 (file)
 #include "config.h"
 
 #include "gtkshortcutswindowprivate.h"
+
+#include "gtkbindings.h"
+#include "gtkbox.h"
+#include "gtkgrid.h"
+#include "gtkheaderbar.h"
+#include "gtkintl.h"
+#include "gtklabel.h"
+#include "gtklistbox.h"
+#include "gtkmenubutton.h"
+#include "gtkpopover.h"
+#include "gtkprivate.h"
 #include "gtkscrolledwindow.h"
+#include "gtksearchbar.h"
+#include "gtksearchentry.h"
 #include "gtkshortcutssection.h"
 #include "gtkshortcutsgroup.h"
 #include "gtkshortcutsshortcutprivate.h"
-#include "gtksearchbar.h"
-#include "gtksearchentry.h"
+#include "gtksizegroup.h"
+#include "gtkstack.h"
+#include "gtktogglebutton.h"
+#include "gtktypebuiltins.h"
 #include "gtkwidgetprivate.h"
-#include "gtkprivate.h"
-#include "gtkintl.h"
 
 /**
  * SECTION:gtkshortcutswindow
index f3f5ba44f4494ab0ad3d7551649d75cd4644e0b9..ec30006da19f77bd295e0cee10d47fb7239b8646 100644 (file)
 #ifndef __GTK_SHORTCUTS_WINDOW_H__
 #define __GTK_SHORTCUTS_WINDOW_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include <gtk/gtkwindow.h>
 
 G_BEGIN_DECLS